//package com.example.demo.config;
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.DirectExchange;
//import org.springframework.amqp.core.Queue;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class TTLDirectRabbitMqConfiguration {
//    @Bean
//    public DirectExchange ttlDirectExchange(){
//        return new DirectExchange("ttl_direct_exchange",true,false);
//    }
//
//    @Bean
//    public Queue ttlDirectsmsQueue(){
//        return new Queue("sms.direct.queue",true);
//    }
//
//    @Bean
//    public Binding directsmsBinding(){
//        return BindingBuilder.bind(directsmsQueue()).to(directExchange()).with("sms");
//    }
//
//    @Bean
//    public Binding directemailBinding(){
//        return BindingBuilder.bind(directemailQueue()).to(directExchange()).with("email");
//    }
//}
